<template>
	<view></view>
</template>
<script lang="ts" setup>
	import { onShow, onLaunch } from '@dcloudio/uni-app';
	import { useUserStore } from '@/stores/user.ts'
	import { pageLink } from '/constants/link.ts'
	import { ref } from 'vue';
	import { redirect } from '/utils/index.ts'

	const userStore = useUserStore();

	onShow(() => {

	});

	onLaunch(async () => {
		if (!userStore.token) {
			redirect(pageLink.auth)
			return
		}

		await userStore.getVipInfo();
	});
</script>

<style lang="less">
	page {
		font-family: 'MiSansVF';
	}

	text {
		font-family: 'MiSansVF';
	}

	view {
		font-family: 'MiSansVF';
	}

	input {
		font-family: 'MiSansVF';
	}
</style>
<style>
	/* #ifdef APP-NVUE */
	@import './tmui/scss/nvue.css';
	/* #endif */
	/* #ifndef APP-NVUE */
	@import './tmui/scss/noNvue.css';
	/* #endif */

	/* #ifdef H5 */
	body::-webkit-scrollbar,
	div::-webkit-scrollbar,
	*::-webkit-scrollbar {
		display: none;
	}

	body.pages-index-index uni-page-body,
	body {
		padding-bottom: 0 !important;
	}

	text {
		font-family: 'sans-serif';
	}

	/* #endif */
</style>
